﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZhiAo.CoreLibrary.Extend
{
    public static   class  StringExtend
    {
        public static string ToStringIgnoreNull(this string key)
        {
            if (string.IsNullOrEmpty(key)) return "";
            return key;
        }

        /// <summary>
        /// 判断字符串是否是空
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        public static bool IsNullOrEmpty(this string key)
        {
            return string.IsNullOrEmpty(key);
        }
    }
}
